package com.training.content.domain;

import com.training.common.annotation.Excel;
import com.training.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 考试记录对象 exam_record
 * 
 * @author training
 * @date 2021-10-25
 */
public class ExamRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** Id */
    private Long recordId;

    /** 员工Id */
    @Excel(name = "员工Id")
    private Long userId;

    /** 试卷Id */
    @Excel(name = "试卷Id")
    private Long examId;

    /** 培训计划Id */
    @Excel(name = "培训计划Id")
    private Long trainId;

    /** 考试状态 0进行中 1已完成 */
    @Excel(name = "考试状态 0进行中 1已完成")
    private Long status;

    /** 考试得分 */
    @Excel(name = "考试得分")
    private Long score;

    /** 考试次数 */
    @Excel(name = "考试次数")
    private Long times;

    /** 是否通过 0否 1是 */
    @Excel(name = "是否通过 0否 1是")
    private Long isPass;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setExamId(Long examId) 
    {
        this.examId = examId;
    }

    public Long getExamId() 
    {
        return examId;
    }
    public void setTrainId(Long trainId) 
    {
        this.trainId = trainId;
    }

    public Long getTrainId() 
    {
        return trainId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setTimes(Long times) 
    {
        this.times = times;
    }

    public Long getTimes() 
    {
        return times;
    }
    public void setIsPass(Long isPass) 
    {
        this.isPass = isPass;
    }

    public Long getIsPass() 
    {
        return isPass;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("userId", getUserId())
            .append("examId", getExamId())
            .append("trainId", getTrainId())
            .append("status", getStatus())
            .append("score", getScore())
            .append("times", getTimes())
            .append("isPass", getIsPass())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
